package com.ymttest.business.data;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import org.apache.http.client.ClientProtocolException;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.ymt.base.YmatouBaseCall;
import com.ymt.base.YmatouEasyCall;
import com.ymt.core.tool.FormatUtil;
import com.ymt.core.tool.Logger;
import com.ymttest.business.service.AuthCallService;
import com.ymttest.utils.TestDataManager;


public class ToUrlEnCode {

	public static void main(String[] args) throws JSONException, ClientProtocolException, IOException {
		ArrayList<String> list = TestDataManager.getLines("work.txt");
		Map<String,Integer> m=new HashMap<String,Integer>();
		for (String s : list) {
			if(m.containsKey(s)){
				m.put(s, m.get(s)+1);
			}else{
				m.put(s, 1);
			}
			System.out.println(m);
		}
	}
}
